<template>
	<view class="box">



		<u-button @click="change">跳转插件黑金卡半年卡</u-button>
		<u-button @click="mayi">蚂蚁宝</u-button>
		<u-button @click="changes">南瓜立减金</u-button>
		<u-button @click="tc">南瓜停车</u-button>
		<u-button @click="xl">半屏蚂蚁宝</u-button>
			<u-button @click="ng">半屏南瓜插件</u-button>
			<u-button @click="hf">半屏南瓜h5</u-button>
				<u-button @click="lg">半屏插件</u-button>
				<u-button @click="nanguanew">半屏插件新南瓜</u-button>
				<u-button @click="nanguanews">插件新南瓜</u-button>
			
		<!-- <u-button @click="shenghuo">生活号</u-button>
		<u-button @click="sheng">生活号</u-button> -->

	</view>
</template>

<script setup>
	export default {
		data() {
			return {


			};
		},

		onLoad(option) {

			my.loadPlugin({
				// 为*时开启动态插件快捷联调方会生效
				plugin: '2021004132605010@*',
				success: () => {
					const plugin = requirePlugin('dynamic-plugin://2021004132605010');
				},
			});
		},
		methods: {
			h5(){
				
			},
			nanguanew(){
				my.openEmbeddedMiniProgram ({
				      appId: '2021004129621025',
				      path: 'pages/nanguanew/nanguanew',
				      success: (res) => {
				        console.log(JSON.stringify(res))
				      },
				      fail: (res) => {
				        console.log(JSON.stringify(res))
				      }
				    });	
			},
			lg(){
			my.openEmbeddedMiniProgram ({
			      appId: '2021004129621025',
			      path: 'pages/mycj/mycj',
			      success: (res) => {
			        console.log(JSON.stringify(res))
			      },
			      fail: (res) => {
			        console.log(JSON.stringify(res))
			      }
			    });	
			},
			hf(){
				my.openEmbeddedMiniProgram ({
				      appId: '2021004129621025',
				      path: 'pages/nanguaweb/nanguaweb',
				      success: (res) => {
				        console.log(JSON.stringify(res))
				      },
				      fail: (res) => {
				        console.log(JSON.stringify(res))
				      }
				    });
				
			},
			ng(){
				my.openEmbeddedMiniProgram ({
				      appId: '2021004129621025',
				      path: 'pages/nanguacj/nanguacj',
				      success: (res) => {
				        console.log(JSON.stringify(res))
				      },
				      fail: (res) => {
				        console.log(JSON.stringify(res))
				      }
				    });
			},
			xl(){
				my.openEmbeddedMiniProgram ({
				      appId: '2021004129621025',
				      path: 'pages/unit/unit?a=e945f04cb73704f294a9186be28a5694',
				      success: (res) => {
				        console.log(JSON.stringify(res))
				      },
				      fail: (res) => {
				        console.log(JSON.stringify(res))
				      }
				    });
			},
			sheng() {
				let link =
					'https://render.alipay.com/p/s/i/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D20000042%26publicBizType%3DLIFE_APP%26publicId%3D2021004124601516%26sourceId%3DsettingShare%26fxzjshareChinfo%3Dch_share__chsub_CopyLink%26chInfo%3Dch_share__chsub_CopyLink%26shareTimestamp%3D1704854565263%26apshareid%3D166762bf-f5dc-4508-a3f3-f7b6c2b104cb%26shareBizType%3DLIFESTYLE_SHARE'

				my.ap.navigateToAlipayPage({
					path: link
				})
			},


			shenghuo() {
				let link =
					'https://render.alipay.com/p/s/i/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D20000042%26publicBizType%3DLIFE_APP%26publicId%3D2021004123662489%26sourceId%3DsettingShare%26fxzjshareChinfo%3Dch_share__chsub_CopyLink%26chInfo%3Dch_share__chsub_CopyLink%26shareTimestamp%3D1704854565263%26apshareid%3D166762bf-f5dc-4508-a3f3-f7b6c2b104cb%26shareBizType%3DLIFESTYLE_SHARE'
				my.ap.navigateToAlipayPage({
					path: link
				})
			},
			nanguanews(){
				my.navigateTo({
					url: 'dynamic-plugin://2021004132605010/nanguanew?a=666666&appid=2021004115620105',
				});
			},
			//蚂蚁宝
			mayi() {
				my.navigateTo({
					url: 'dynamic-plugin://2021004132605010/mayi?a=e52ac8294c267465837ed09e37b469a6',
				});
			},
			change() {
				my.navigateTo({
					url: 'dynamic-plugin://2021004132605010/hello-page?a=666666',
				});
			},
			//南瓜停车券
			tc() {
				my.navigateTo({
					url: 'dynamic-plugin://2021004132605010/nanguatc?a=e52ac8294c267465837ed09e37b469a6',
				});
			},
			//南瓜立减金
			changes() {
				console.log(7777)
				my.navigateTo({
					url: 'dynamic-plugin://2021004132605010/hello-page1?a=e52ac8294c267465837ed09e37b469a6',
				});
			},
		},


		onShow() {

		}
	}
</script>

<style lang="scss" scoped>

</style>